<template>
  <div>
    <!--    头部-->
    <Header></Header>

    <!--      导航-->
    <Nav></Nav>

    <el-container>


      <el-main width="70%">
        <router-view></router-view>
      </el-main>

      <!--      右侧侧边栏-->
      <el-aside width="30%">
        <Sidebar></Sidebar>
      </el-aside>

    </el-container>

  </div>
</template>

<script>
  import Header from "../components/Header"
  import Nav from "../components/Nav"
  import Sidebar from "../components/Sidebar"

  export default {
    name: "index",
    components: {
      Header,
      Nav,
      Sidebar
    }
  }
</script>

<style scoped lang="less">
  .el-container {
    width: 80%;
    margin: auto;
  }

  .el-aside {
    padding-top: 40px;
  }
</style>